<style lang="less">

</style>

<template>
  <el-dialog title="查看图片" :visible.sync="dialogVisible" class="charge-offs-list">
    <el-carousel indicator-position="outside" height="500px">
      <el-carousel-item v-for="(item,index) in imgs" :key="index">
        <img :src="item" style="height: 100%;"/>
      </el-carousel-item>
    </el-carousel>
  </el-dialog>
</template>

<script>
export default {
  name: 'ViewImg',
  componentName: 'ViewImg',
  data () {
    return {
      dialogVisible: false,
      imgs: []
    };
  },
  methods: {
    show (imgs) {
      this.imgs = imgs;
      this.dialogVisible = true;
    }
  }
};
</script>
